# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=py3-ordered-set
pkgver=4.0.2
pkgrel=0
pkgdesc="MutableSet that remembers its order"
url="https://github.com/LuminosoInsight/ordered-set"
arch="noarch"
license="MIT"
depends="python3"
source="https://pypi.io/packages/source/o/ordered-set/ordered-set-$pkgver.tar.gz"
builddir="$srcdir/ordered-set-$pkgver"

package() {
	# Can't use setuptools since setuptools depends on this
	mkdir -p "$pkgdir"/usr/lib/python3.8/site-packages

	cp -rv ordered_set.egg-info \
		"$pkgdir"/usr/lib/python3.8/site-packages/ordered_set-$pkgver-py3.8.egg-info
	cp -rv ordered_set.py "$pkgdir"/usr/lib/python3.8/site-packages/

	python3 -m compileall -f -q "$pkgdir"/usr/lib/python3.8/site-packages/*.py
}

sha512sums="d7031ae90fdaf116c27415170a7197be34ff4b977a03684a6fb53dc453845a97cd32b9666ed3ae58fb7bc722ff3b2b4f2e156578841033759b490b359a5619b4  ordered-set-4.0.2.tar.gz"
